<template>
  <div>
    <div class="row mga" v-if="files.length || teacherfile.length">
      <span class="demonstration course">课程课件下载</span>
      <hr>
    </div>
    <div class="row mga">
      <div class="col">
        <a v-for="(v, i) in files" v-show="agent(v)" :key="i" :href="v.file_URL" target="_blank">
          <img :src="v.img_URL" alt="安装程序">
        </a>
        <a v-for="(v, i) in teacherfile" :key="i" :href="v.fileurl" target="_blank" v-show="ppts()">
          <img :src="kturl(v)" alt="教师课件" class="kejian">
        </a>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ["files", "agent", "teacherfile", "kturl", "ppts"]
};
</script>
